﻿<%@ Page Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="Company.aspx.cs" Inherits="WebApplication1.Company" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataSourceID="SqlDataSource1" Width="664px">
    <Columns>
        <asp:BoundField DataField="TenSpham" HeaderText="TenSpham" 
            SortExpression="TenSpham" />
        <asp:BoundField DataField="IdCty" HeaderText="IdCty" SortExpression="IdCty" />
        <asp:BoundField DataField="Gia" HeaderText="Gia" SortExpression="Gia" />
        <asp:BoundField DataField="Mota" HeaderText="Mota" SortExpression="Mota" />
    </Columns>
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ThucTapConnectionString2 %>" 
    SelectCommand="SELECT [TenSpham], [Hinhanh], [IdCty], [Gia], [Mota] FROM [tblSpham] WHERE (([idCatalogy] = @idCatalogy) AND ([IdCty] = @IdCty))">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="idCatalogy" Type="Int32" />
        <asp:Parameter DefaultValue="1" Name="IdCty" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>
     
</asp:Content>
